import request from '@/utils/request'

// 查询产品价格走势列表
export function listProductPriceTrend(query) {
  return request({
    url: '/pms/productPriceTrend/list',
    method: 'get',
    params: query
  })
}

// 查询产品价格走势详细
export function getProductPriceTrend(id) {
  return request({
    url: '/pms/productPriceTrend/' + id,
    method: 'get'
  })
}

// 新增产品价格走势
export function addProductPriceTrend(data) {
  return request({
    url: '/pms/productPriceTrend',
    method: 'post',
    data: data
  })
}

// 修改产品价格走势
export function updateProductPriceTrend(data) {
  return request({
    url: '/pms/productPriceTrend',
    method: 'put',
    data: data
  })
}

// 删除产品价格走势
export function delProductPriceTrend(id) {
  return request({
    url: '/pms/productPriceTrend/' + id,
    method: 'delete'
  })
}
